package com.semidata.rtd.core.log;


public class DefaultLogService extends LogService {

    public DefaultLogService(String root, boolean isDebugEnabled) {
        super(root);

        registerLogEventHandler(ErrorLogHandler.NAME, ErrorLogHandler.class);
        registerLogEventHandler(InfoLogHandler.NAME, InfoLogHandler.class);
        registerLogEventHandler(BusinessLogHandler.NAME, BusinessLogHandler.class);
        if (isDebugEnabled)
            registerLogEventHandler(DebugLogHandler.NAME, DebugLogHandler.class);
    }
}
